{
    var Admin = /** @class */ (function () {
        function Admin(_name) {
            this._name = _name;
        }
        Object.defineProperty(Admin.prototype, "name", {
            get: function () {
                return this._name;
            },
            set: function (name) {
                this._name = name;
            },
            enumerable: false,
            configurable: true
        });
        return Admin;
    }());
    var admin = new Admin("xia");
    admin.name = "xiaxia";
    console.log(admin.name);
    var Article = /** @class */ (function () {
        function Article() {
            this._lists = [];
        }
        Object.defineProperty(Article.prototype, "lists", {
            // 可以在访问器中进行一些操作
            get: function () {
                this._lists = this._lists.filter(function (val) {
                    if (typeof (val.title) == "string") {
                        return val;
                    }
                });
                return this._lists;
            },
            set: function (lists) {
                this._lists = lists;
            },
            enumerable: false,
            configurable: true
        });
        return Article;
    }());
    var article = new Article();
    article.lists = [{ title: "后盾人" }, { title: "hdms" }, { title: 1 }];
    console.log(article.lists);
}
